package com.ruoyi.system.util;

import java.util.Random;

public class RandomVerifyCode {
    public static String generateSixDigitRandomNumber() {
        Random random = new Random();
        int number = random.nextInt(999999);
        return String.format("%06d", number); // 确保生成的数字为6位，不足则前面补0
    }

}
